package com.bmft;

import androidx.appcompat.app.AppCompatActivity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;

import com.bumptech.glide.Glide;

public class ImageViewActivity09 extends AppCompatActivity {

    private ImageView iv_net_image;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_image_view09);

        //find
        iv_net_image = findViewById(R.id.iv_net_image);
        String url = "https://upload.jianshu.io/users/upload_avatars/23793054/f3d2b72d-71d4-4337-95c3-2a27f5b85190.jpg?imageMogr2/auto-orient/strip|imageView2/1/w/80/h/80/format/webp";
        Glide.with(ImageViewActivity09.this)
                .load(url)
                .into(iv_net_image);
    }

    public void backToMain(View view) {
        Intent intent = new Intent(ImageViewActivity09.this, MainActivity.class);
        startActivity(intent);
    }
}